﻿using System.Collections;
using System.Collections.Generic;
using System.Xml.Serialization;
using UnityEngine;

public class PlayerData
{
    [XmlAttribute]
    public string name;

    public void Save()
    {
        XmlDataMgr.Instance.SaveData(this, "playerData");
    }

    public void SetName(string value)
    {
        this.name = value;
        Save();
    }
}
